package com.tianhui.consignortwofei.role;

import android.text.TextUtils;

import com.tianhui.consignortwofei.mvp.model.enty.ProfileInfo;

/**
 * @author fgs
 * @date 2021/6/3
 * @description 物流调度员
 **/
public class LogisticsRole extends BaseRole {
    private final ProfileInfo profileInfo;

    public LogisticsRole(ProfileInfo profile) {
        this.profileInfo = profile;
    }

    @Override
    public boolean isShowOrderTypeTabLayout() {
        return true;
    }

    @Override
    public boolean isShowStaticsView() {
        boolean isShow = false;
        if (profileInfo != null && !TextUtils.isEmpty(profileInfo.account) && profileInfo.account.equals("tianhui_wangteng")) {
            isShow = true;
        }
//        return isShow;
        return false;
    }

    @Override
    public boolean isShowSalesMan() {
        boolean result = profileInfo != null && !TextUtils.isEmpty(profileInfo.roleinfotype) && profileInfo.roleinfotype.equals("01");
        return result;
    }

    @Override
    public boolean isShowBelongArea() {
        return true;
    }
}
